﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Application.Dtos;
using Volo.Abp.Application.Services;
using Volo.Abp.Identity;

namespace Acme.BookStore2
{
    public interface IExtendIdentityUserAppService : IApplicationService
    {
        Task<ListResultDto<OrganizationUnitDto>> GetAssignableOrganizationUnitsAsync();

        Task<ListResultDto<OrganizationUnitDto>> GetOrganizationUnitsAsync(Guid id);

        Task<IdentityUserDto> CreateAsync(ExtendIdentityUserCreateDto input);

        Task<IdentityUserDto> UpdateAsync(Guid id, ExtendIdentityUserUpdateDto input);

        Task LockUserAsync(Guid id, double? seconds);

        Task UnLockUserAsync(Guid id);

        Task ChangePasswordAsync(Guid id, IdentityChangePasswordInput input);
    }
}
